from bs4 import BeautifulSoup




with open(r'aaaa.html') as f:
    text = f.read()
    soup=BeautifulSoup(text)


print(soup)

tabs=soup.find_all('table')

for tab in tabs:
    for row in tab.find_all('tr'):
        tds = row.find_all(['th','td'])
        m = [x for x in tds]
        l_tdstr = [td.get_text(strip=True) for td in tds]
        print(1)
        
print(tab)